package com.asymptote.data;

import javax.jdo.annotations.NullValue;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

import com.asymptote.DataEntity;
import com.google.appengine.api.datastore.Key;

@PersistenceCapable(detachable="true")
public class MemberEntity extends DataEntity {
	private static final long serialVersionUID = 4134353766468986624L;

	@Persistent(nullValue = NullValue.EXCEPTION)
	private String name;
	
	@Persistent(nullValue = NullValue.EXCEPTION)
	private String password;

	@Persistent( nullValue = NullValue.EXCEPTION )
	private boolean gender;

	@Persistent(nullValue = NullValue.EXCEPTION)
	private String idNum;
	
	@Persistent(nullValue = NullValue.EXCEPTION)
	private String mobile;

	@Persistent( nullValue = NullValue.EXCEPTION )
	private String email;
		
	@Persistent
	private String desc;
	
	@Persistent
	private Key place;

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPassword() {
		return password;
	}

	public void setGender(boolean gender) {
		this.gender = gender;
	}

	public boolean isGender() {
		return gender;
	}

	public void setIdNum(String idNum) {
		this.idNum = idNum;
	}

	public String getIdNum() {
		return idNum;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getMobile() {
		return mobile;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getEmail() {
		return email;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getDesc() {
		return desc;
	}

	public void setPlace(Key place) {
		this.place = place;
	}

	public Key getPlace() {
		return this.place;
	}
}
